<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('Home')->group(function (){
    Route::get('/', 'HomeController@index');
    Route::get('about', 'HomeController@about');
    // 技术中心
    Route::get('tech-center', 'TechCenterController@techCenter');
    Route::get('tech-center-detail/{id}', 'TechCenterController@techCenterDetail');
    // 下载
    Route::get('download', 'DownloadController@index');
    // FAQ
    Route::get('faq', 'FaqController@index');
    // 新闻
    Route::get('news', 'NewsController@index');
    Route::get('news-type/{id}', 'NewsController@index');
    Route::get('news-detail/{id}', 'NewsController@detail');
    // 产品
    Route::get('products', 'ProductsController@index');
    Route::get('product-detail/{url}', 'ProductsController@detail');
    // 案例
    Route::get('project', 'ProjectController@index');
    Route::get('project-detail/{id}', 'ProjectController@detail');
    // 联系我们
    Route::get('contact', 'HomeController@contact');

    // 留言
    Route::post('message', 'MessageController@saveMessage');
    Route::get('leave-message-success', 'MessageController@leaveMessageSuccess');

});
